#pragma once
#include <cocos2d.h>
#include "pugixml.hpp"
#include "Pet.h"

using namespace pugi;
USING_NS_CC;

class PetFactory : public CCObject
{
public:
	PetFactory(void);
	~PetFactory(void);

	virtual bool init();
	virtual void parseXml(xml_node node);
	virtual Pet* createPet();

	CC_SYNTHESIZE_RETAIN(CCString*, _id, Id);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listWeapon, Weapons);
	CC_SYNTHESIZE_RETAIN(CCDictionary*, _resource, Resource);
	CREATE_FUNC(PetFactory);
};

